#include <stdio.h>
#define SIZE 100
char msg[SIZE];
int main(void)
{
    printf("Enter a message: ");
    char ch;
    char *p;
    for (p = msg; p < msg + SIZE && (ch = getchar()) != '\n'; p++)
        *p = ch;
    printf("Reversal is: ");
    for (char *q = p; q >= msg; q--)
        printf("%c", *q);
    printf("\n");
    return 0;
}